<style >
    
</style>
<!--引用外部样式-->
<!-- <link href="../normalize.8.0.1.css"/> -->
<template>
    <div class="">
        <div>
            DOM获取路由参数：index = {{router.query.index}}
        </div>
        <button type="submit" class="btn btn-success" @click="loadDialog">单击加载组件，减少资源消耗</button>
        <button type="submit" class="btn btn-success" v-link.back>page back</button>
    </div>
</template>
<script>
//这里定义组件
Rap.define({
    data: function(){
        return {
        }
    },
    created:function () {
        // this.router.query.index
    },
    init:function () {

    },
    methods:{
        loadDialog: function(){
            Rap.showPopup("/mobile/dialog",{
                data:function () {
                    return {
                        open: true
                    }
                }
            });
        }
    }
})
</script>